import request from '@/utils/request'

// 查询小区巡检上报列表
export function listReportForm(query) {
  return request({
    url: '/system/reportForm/list',
    method: 'get',
    params: query
  })
}

// 查询小区巡检上报详细
export function getReportForm(id) {
  return request({
    url: '/system/reportForm/' + id,
    method: 'get'
  })
}

// 新增小区巡检上报
export function addReportForm(data) {
  return request({
    url: '/system/reportForm',
    method: 'post',
    data: data
  })
}

// 修改小区巡检上报
export function updateReportForm(data) {
  return request({
    url: '/system/reportForm',
    method: 'put',
    data: data
  })
}

// 删除小区巡检上报
export function delReportForm(id) {
  return request({
    url: '/system/reportForm/' + id,
    method: 'delete'
  })
}

// 导出小区巡检上报
export function exportReportForm(query) {
  return request({
    url: '/system/reportForm/export',
    method: 'get',
    params: query
  })
}
